import request from "@/utils/request"

// 查询外委财产登记列表
export function listEntrance(query) {
	return request({
		url: "/TPropertyRegistrationSynthesize/synthesize/list",
		method: "get",
		params: query
	})
}


// 质量管理查询外委财产登记列表
export function listEntrance1(query) {
	return request({
		url: "/TPropertyRegistrationSynthesize/synthesize/list1",
		method: "get",
		params: query
	})
}

// 生产列表子菜单查询
export function listEntranceChild(query) {
	return request({
		url: "/TPropertyRegistrationSynthesize/synthesize/childlist/" + query.id,
		method: "get",
		params: query
	})
}

// 送检
export function submitEntrance(data) {
	return request({
		url: "/TPropertyRegistrationSynthesize/synthesize/inspect",
		method: "post",
		data
	})
}

// 上传合格证
export function submitCert(data) {
	return request({
		url: "/TPropertyRegistrationSynthesize/synthesize/CertificateUp",
		method: "post",
		data
	})
}

// 入库
export function handleEntranceIn(data) {
	return request({
		url: "/TPropertyRegistrationSynthesize/synthesize/in",
		method: "post",
		data
	})
}

// 退货
export function handleEntranceBack(ids) {
	return request({
		url: "/TPropertyRegistrationSynthesize/synthesize/out/" + ids,
		method: "post"
	})
}

// 下发
export function submitIssue(data) {
	return request({
		url: "/TPropertyRegistrationSynthesize/synthesize/wwissue",
		method: "post",
		data
	})
}

// 删除
export function delEntrance(id) {
	return request({
		url: "TPropertyRegistrationSynthesize/synthesize/" + id,
		method: "delete"
	})
}

// 检验详情
export function getExamInfo(id) {
	return request({
		url: "/TPropertyRegistrationSynthesizeEquipment/equipment/" + id,
		method: "get"
	})
}

export function updateExamInfo(data) {
	return request({
		url: "/TPropertyRegistrationSynthesizeEquipment/equipment",
		method: "put",
		data
	})
}



